function date(val) {
    if (val) {
        var oDate = new Date(val)
        let oMonth = oDate.getMonth() + 1
        let oDay = oDate.getDate()
        let oHour = oDate.getHours()
        let oMin = oDate.getMinutes()
        let a
        if (oHour <= 12 && oHour >= 6) {
            a = '上午'
        } else if (oHour >= 12 && oHour <= 18) {
            a = '下午'
        } else if (oHour >= 18 && oHour <= 24) {
            a = '晚上'
        } else if (oHour >= 0 && oHour <= 6) {
            a = '凌晨'
        }
        let oTime = oMonth + '月' + oDay + '日' + ' ' + a + oHour + ':' + oMin;
        return oTime;
    } else {
        return "";
    }
}
export {
    date,
}